#include <iostream>
#include <string>

//#include <string.h>

using namespace std;

int main(){
    string str11;
    string str21 = "wanghongbin";
    cout<<"str2 length is:"<<str21.length()<<endl;

    // C++11 string initialization
    char f_d[] = {"abcd"};
    char s_d[] {"sfsdf"};
    string t_d[] = {"erere", "sdfsd"};
    string fourth_d[] {"dsfwer", "sfsdf"};

    // Assignment, Concatenation, and Appending
    // The string class simplifies combining strings: + = operators
    string str1 = "wgb";
    string str2 {"sfsd"};
    string str3 = str1 + str2;

    // other forms of string literals
    wchar_t title[] = L"Chief Astrogator"; // w_char string
    char16_t name[] = u"Felonia Ripova"; // char_16 string
    // ...
    cout<<"王洪彬"<<endl;

    // C++11 raw string

    return 0;
}